.class public Lcom/waiqin365/lightapp/sku/SKUInitActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Lcom/waiqin365/compons/view/d;


# instance fields
.field private a:Lcom/waiqin365/compons/view/c;

.field private b:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const-string/jumbo v0, "sku_cache"

    iput-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    return-void
.end method

.method private a()V
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->g(Ljava/lang/String;)Lcom/waiqin365/base/db/jxccache/a;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->a:Lcom/waiqin365/compons/view/c;

    const v1, 0x7f08076d

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->a:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b()V

    goto :goto_0
.end method

.method private b()V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/sku/SKUCartActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->overridePendingTransition(II)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->finish(Z)V

    return-void
.end method


# virtual methods
.method public onBackPressed()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->finish()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->a:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    return-void

    :pswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b()V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->b()V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x7f0c0064
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    new-instance v0, Lcom/waiqin365/compons/view/c;

    const v1, 0x7f0806b1

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    sget v2, Lcom/waiqin365/compons/view/c;->c:I

    invoke-direct {v0, p0, v1, v2, p0}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->a:Lcom/waiqin365/compons/view/c;

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sku/SKUInitActivity;->a()V

    return-void
.end method
